//
// Created by hsj on 2022/1/7.
//
#ifndef CLION_CPP_REF_STRUCT_H
#define CLION_CPP_REF_STRUCT_H
//结构体引用
void test_ref_struct();

struct free_throws{
    std::string name;
    int made;
    int attempts;
    float percent;
};
//函数局部变量的堆对象正确的返回引用
const free_throws & test_ref_struct_sub(free_throws &t);
#endif //CLION_CPP_REF_STRUCT_H
